package com.efast.dmom.mes.entity;

import java.time.LocalDateTime;

import com.efast.dmom.mes.bean.Equipment;
import com.efast.dmom.mes.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;

public class StartWorkEntity extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1903781123986867552L;
	
	private long partId;
	
	private long operationId;
	
	//工序类型  首末工序
	private String operationType;
	
	private long equipId;
	
	private String equipCode;
	
	private String equipName;
	
	private long spareId;
	
	private String spareCode;
	
	private String spareName;
	
	private String cutterCode;
	
	private String cutterName;
	
	private String startWorkUser;
	
	private Equipment equipment;
	
	private Equipment spareData;
	
	@JsonDeserialize(using = LocalDateDeserializer.class)
	@JsonSerialize(using = LocalDateSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd hh:mm:ss")
	private LocalDateTime startWorkDate;
	
	private int isFlag;
	
	private String partName;
	private String partNo;
	
	private String operationCode;
	
	private String operationName;
	
	public String getPartName() {
		return partName;
	}

	public void setPartName(String partName) {
		this.partName = partName;
	}

	public String getPartNo() {
		return partNo;
	}

	public void setPartNo(String partNo) {
		this.partNo = partNo;
	}

	public String getOperationCode() {
		return operationCode;
	}

	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}

	public String getOperationName() {
		return operationName;
	}

	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	public String getEquipCode() {
		return equipCode;
	}

	public void setEquipCode(String equipCode) {
		this.equipCode = equipCode;
	}

	public String getEquipName() {
		return equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}

	public String getCutterCode() {
		return cutterCode;
	}

	public void setCutterCode(String cutterCode) {
		this.cutterCode = cutterCode;
	}

	public String getCutterName() {
		return cutterName;
	}

	public void setCutterName(String cutterName) {
		this.cutterName = cutterName;
	}

	public long getPartId() {
		return partId;
	}

	public void setPartId(long partId) {
		this.partId = partId;
	}

	public long getOperationId() {
		return operationId;
	}

	public void setOperationId(long operationId) {
		this.operationId = operationId;
	}

	public long getEquipId() {
		return equipId;
	}

	public void setEquipId(long equipId) {
		this.equipId = equipId;
	}

	public long getSpareId() {
		return spareId;
	}

	public void setSpareId(long spareId) {
		this.spareId = spareId;
	}

	public String getStartWorkUser() {
		return startWorkUser;
	}

	public void setStartWorkUser(String startWorkUser) {
		this.startWorkUser = startWorkUser;
	}

	public LocalDateTime getStartWorkDate() {
		return startWorkDate;
	}

	public void setStartWorkDate(LocalDateTime startWorkDate) {
		this.startWorkDate = startWorkDate;
	}

	public int getIsFlag() {
		return isFlag;
	}

	public void setIsFlag(int isFlag) {
		this.isFlag = isFlag;
	}

	public String getOperationType() {
		return operationType;
	}

	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}

	public Equipment getEquipment() {
		return equipment;
	}

	public void setEquipment(Equipment equipment) {
		this.equipment = equipment;
	}

	public Equipment getSpareData() {
		return spareData;
	}

	public void setSpareData(Equipment spareData) {
		this.spareData = spareData;
	}

	public String getSpareCode() {
		return spareCode;
	}

	public void setSpareCode(String spareCode) {
		this.spareCode = spareCode;
	}

	public String getSpareName() {
		return spareName;
	}

	public void setSpareName(String spareName) {
		this.spareName = spareName;
	}

	
}
